package org.example.medicalstaff.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Data
@Repository
@TableName("checkapply")
public class CheckApply {
    @TableId(value="ID",type = IdType.AUTO)
    private int ID;
    @TableField(value = "MedicalID")
    private int MedicalID;//病历ID，指向MedicalRecord
    @TableField(value = "RegistID")
    private int RegistID;//挂号ID
    @TableField(value = "ItemID")
    private int ItemID;//项目ID
    @TableField(value = "Name")
    private String Name;//项目名称
    @TableField(value = "Objective")
    private String Objective;//目的要求
    @TableField(value = "Position")
    private String Position;//检查部位
    @TableField(value = "IsUrgent")
    private int IsUrgent;//是否加急
    @TableField(value = "Num")
    private int Num;//数量
    @TableField(value = "CreationTime")
    private Date CreationTime;//开立时间
    @TableField(value = "DoctorID")
    private int DoctorID;//开立医生ID
    @TableField(value = "CheckOperID")
    private int CheckOperID;//检查人员ID
    @TableField(value = "ResultOperID")
    private int ResultOperID;//结果录入人员ID
    @TableField(value = "CheckTime")
    private Date CheckTime;//检查时间
    @TableField(value = "Result")
    private String Result;//检查结果
    @TableField(value = "ResultTime")
    private Date ResultTime;//结果时间
    @TableField(value = "State")
    private int State;//状态
    @TableField(value = "RecordType")
    private int RecordType;//记录类型

}
